package com.weixstudio.designmode.builder.demo_1;

/**
 * @ClassName Client
 * @Description TODO
 * @Author liangw
 * @Date 2022/4/25 22:44
 * @Version 1.0
 **/
public class Client {

    public static void main(String[] args) {
        ActorBuilder ab = (ActorBuilder) XMLUtil.getBean();
        ActorController ac =  new ActorController();
        Actor actor = ac.construct(ab);

        System.out.println(actor.getType()+"\n"+
                          actor.getSex()+"\n"+
                           actor.getFace()+"\n"+
                           actor.getCostume()+"\n"+
                          actor.getHairstyle());



    }
}
